package org.springsocial.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springsocial.dao.CountryDao;
import org.springsocial.domain.Country;
import org.springsocial.services.CountryService;

@Service
public class CountryServiceImpl implements CountryService {
	@Autowired
	private CountryDao countryDao;

	@Override
	public Country getCountry(String code) {
		return countryDao.getCountry(code);
	}

	@Override
	public List<Country> getAll() {
		return countryDao.getAll();
	}

}
